import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//安装配置axios
import axios from 'axios'
axios.defaults.baseURL="http://localhost:3000"
Vue.prototype.axios=axios;

//安装配置element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

//安装地区选择工具
import VDistpicker from 'v-distpicker'

Vue.component('v-distpicker', VDistpicker)
//引入全局组件
import Header from './components/Header.vue'
Vue.component('my-header',Header)
import Footer from './components/Footer.vue'
Vue.component('my-footer',Footer)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
